﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SanFranciscoModel.Alumno;

namespace SanFrancisco
{
    public partial class ListarConductaAlumno : Form
    {
        private int _DNI;

        public ListarConductaAlumno(int dni)
        {
            _DNI = dni;
            InitializeComponent();
        }

        private void ListarConductaAlumno_Load(object sender, EventArgs e)
        {
            ConductaAlumno ca = new ConductaAlumno();
            AlumnoManager AL = new AlumnoManager();

            ca = AL.getConductaAlumnobyDNI(_DNI);

            lblDNI.Text = "DNI: " + ca.DNIAlumno;
            lblIdCurso.Text = "Id Curso: " + ca.idCurso.ToString();
            lblNota.Text = "Nota: " + ca.Nota;
            txtAclaraciones.Text = ca.Aclaraciones;
            

        }

        private void btnGuardar_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
